package com.ruoyi.common.redis;

import com.ruoyi.common.redis.service.RedisService;

/**
 * @author fxy
 * @date 2024/9/13
 * @Description
 */
public class Test {
    private static RedisService redisService = new RedisService(); // 使用实际的构造函数或工厂方法

    public static void main(String[] args) {
        redisService.setCacheObject("123", "456");
        System.out.println("redisService.getCacheObject(\"123\") = " + redisService.getCacheObject("123"));

    }
}
//redisService.setValueWithExpiration("123", "456", 10, TimeUnit.SECONDS);
//System.out.println("123对应的值"+redisService.getValue("123"));
